import request from '@/utils/request'

// 查询列表展示
export function listAdminPermissions(query) {
  return request({
    url: '/com.mmk.admin.api.AdminPermissionProvider/1.0.0/listAdminPermissions.html',
    method: 'post',
    data: query
  })
}

//状态更新
export function updateAdminPermissionStatus(query) {
    return request({
      url: '/com.mmk.admin.api.AdminPermissionProvider/1.0.0/updateAdminPermissionStatus.html',
      method: 'post',
      data: query
    })
}

//权限添加
export function addAdminPermission(query) {
    return request({
      url: '/com.mmk.admin.api.AdminPermissionProvider/1.0.0/addAdminPermission.html',
      method: 'post',
      data: query
    })
}

//权限详情
export function getAdminPermissionById(query) {
    return request({
      url: '/com.mmk.admin.api.AdminPermissionProvider/1.0.0/getAdminPermissionById.html',
      method: 'post',
      data: query
    })
}

//权限编辑
export function updateAdminPermission(query) {
    return request({
      url: '/com.mmk.admin.api.AdminPermissionProvider/1.0.0/updateAdminPermission.html',
      method: 'post',
      data: query
    })
}

//新列表查询
export function listAdminPermissionsWithoutMenu(query) {
    return request({
      url: '/com.mmk.admin.api.AdminPermissionProvider/1.0.0/listAdminPermissionsWithoutMenu.html',
      method: 'post',
      data: query
    })
}